﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace WizzardTheGame
{
    abstract class Item:IDrawable
    {
        private Object3D itemModel;
        private bool isVisible;
        private Vector3 position;
        private bool inInventory;

        #region Properties

        internal Object3D ItemModel
        {
            get { return itemModel; }
            set { itemModel = value; }
        }

        public bool IsVisible
        {
            get { return isVisible; }
            set { isVisible = value; }
        }

        public Vector3 Position
        {
            get { return position; }
            set
            {
                position = value;
                ItemModel.Position = value;
            }
        }

        public bool InInventory
        {
            get { return inInventory; }
            set { inInventory = value; }
        }
        #endregion

        public Item()
        {
            ItemModel = new Object3D();
            IsVisible = true;
            Position = Vector3.Zero;
            InInventory = false;
        }

        #region IDrawable Members

        public virtual void Draw()
        {
            if (IsVisible) ItemModel.Draw();
        }

        #endregion
    }
}
